PaginatedIterator

fun <T> PaginatedIterator(    pageSize: Int,     countGetter: () -> Long,     paginationResultGetter: Pagination.() -> PaginationResult<T>)